#!/bin/bash
REPOS="$1"
REV="$2"
web_name=test
web_dir=/web/mashangchi/${web_name}
export LANG=en_US.UTF-8  #字符集需和服务一致，locale命令查看
#svn update $web_dir --username admin --password 123456  #用svn账号更新网站内容
#svn update $web_dir
svn co svn://127.0.0.1/$web_name  $web_dir > /dev/null
echo $(date +'%Y-%m-%d %H:%M:%S')  `whoami`  $REPOS   $REV >> /web/svn.log
chown -R nginx:www  $web_dir
